<?php

/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
| It's a breeze. Simply tell Laravel the URIs it should respond to
| and give it the Closure to execute when that URI is requested.
|
*/

#后台登录
Route::get('/', 'AdminController@Dashboard');
Route::get('/login', 'AdminController@Login');                              //登录界面
Route::post('/depose_login', 'AdminController@DisposeLogin');               //登录请求
Route::get('/captcha', 'AdminController@Captcha');                          //验证码

#管理员
Route::get('/manage_admin', 'AdminController@ManageAdmin');                 //管理员管理
Route::get('/add_admin', 'AdminController@AddAdmin');                       //管理员添加
Route::get('/manage_admin_role', 'AdminController@ManageAdminRole');        //管理员角色管理
Route::get('/add_admin_role', 'AdminController@AddAdminRole');              //管理员角色添加
Route::any('/edit_admin', 'AdminController@EditAdmin');
Route::get('/del_admin', 'AdminController@DeleteAdmin');

#商家管理
Route::get('/manage_supplier', 'AdminController@ManageSupplier');               //商家管理
Route::get('/add_supplier', 'AdminController@AddSupplier');                     //商家入驻
Route::post('/supplier_import_action', 'AdminController@SupplierImportAction');  //商家入库

#资讯管理
Route::get('/news_list', 'AdminController@NewsList');                      //资讯列表
Route::get('/news_import', 'AdminController@NewsImport');                  //资讯导入

#会员管理
Route::get('/manage_customer', 'AdminController@ManageCustomer');         //会员管理
Route::get('/majia_list', 'AdminController@MajiaList');                   //马甲列表
Route::get('/customer_import', 'AdminController@CustomerImport');         //会员录入

#服务管理
Route::get('/forest_service', 'AdminController@ForestService');           //林场服务
Route::get('/transport_service', 'AdminController@TransportService');     //物流服务
Route::get('/storage_service', 'AdminController@StorageService');         //仓储服务
Route::get('/harbour_service', 'AdminController@HarbourService');         //港口服务

Route::get('/forest_import', 'AdminController@ForestImport');             //林场录入
Route::get('/transport_import', 'AdminController@TransportImport');       //物流线路录入
Route::get('/storage_import', 'AdminController@StorageImport');           //仓储录入
Route::get('/harbour_import', 'AdminController@HarbourImport');           //港口录入

#产品管理
Route::get('/manage_product', 'AdminController@ManageProduct');           //产品管理
Route::get('/product_place', 'AdminController@ProductPlace');              //产地管理
Route::get('/product_brand', 'AdminController@ProductBrand');             //品牌管理
Route::get('/product_cate', 'AdminController@ProductCate');               //分类管理

Route::get('/product_import', 'AdminController@ProductImport');           //产品录入
Route::post('/product_import_action', 'AdminController@ProductImportAction');//产品入库
Route::get('/product_place_import', 'AdminController@ProductPlaceImport');  //产地录入
Route::post('/product_place_import_action', 'AdminController@ProductPlaceImportAction');  //产地入库
Route::get('/product_brand_import', 'AdminController@ProductBrandImport');//品牌录入
Route::post('/product_brand_import_action', 'AdminController@ProductBrandImportAction');//品牌入库
Route::get('/product_cate_import', 'AdminController@ProductCateImport');  //分类录入
Route::get('/product_class_import', 'AdminController@ProductClassImport');//品类录入
Route::get('/product_quality_import', 'AdminController@ProductQualityImport');//材质录入
Route::get('/product_level_import', 'AdminController@ProductLevelImport');//等级录入
Route::post('/product_level_import_action', 'AdminController@ProductLevelImportAction');//等级入库
Route::get('/product_spec_import', 'AdminController@ProductSpecImport');//规格录入
Route::post('/product_spec_import_action', 'AdminController@ProductSpecImportAction');//规格入库

Route::get('/level_info', 'AdminController@GetLevelInfo');                //获取材质等级
Route::get('/spec_info', 'AdminController@GetSpecInfo');                  //获取材质规格

Route::get('/api_test', 'OtherController@ApiTest');                  //API测试页

















Route::any('/add_supplier', 'AccountController@AddSupplier');
Route::any('/edit_supplier', 'AccountController@EditSupplier');
Route::get('/del_supplier', 'AccountController@DeleteSupplier');

#产品管理
Route::get('/show_goods', 'GoodsController@ShowGoodsList');
Route::any('/add_goods', 'GoodsController@AddGoods');
Route::any('/edit_goods', 'GoodsController@EditGoods');
Route::get('/delete_goods', 'GoodsController@DeleteGoods');

#产品分类管理
Route::get('/show_goods_cate', 'GoodsController@ShowGoodsCate');
Route::any('/add_goods_cate', 'GoodsController@AddGoodsCate');
Route::any('/edit_goods_cate', 'GoodsController@EditGoodsCate');
Route::get('/delete_goods_cate', 'GoodsController@DeleteGoodsCate');

#产品品牌管理
Route::get('/show_goods_brand', 'GoodsController@ShowGoodsBrandList');
Route::any('/add_goods_brand', 'GoodsController@AddGoodsBrand');
Route::any('/edit_goods_brand', 'GoodsController@EditGoodsBrand');
Route::get('/delete_goods_brand', 'GoodsController@DeleteGoodsBrand');

#产地管理
Route::get('/show_area', 'GoodsController@ShowAreaList');
Route::any('/add_area', 'GoodsController@AddArea');
Route::any('/edit_area', 'GoodsController@EditArea');
Route::get('/delete_area', 'GoodsController@DeleteArea');

#标签管理
Route::get('/show_label', 'GoodsController@ShowLabelList');
Route::any('/add_label', 'GoodsController@AddLabel');
Route::any('/edit_label', 'GoodsController@EditLabel');
Route::get('/delete_label', 'GoodsController@DeleteLabel');

#规格管理
Route::get('/show_spec', 'GoodsController@ShowSpecList');
Route::any('/add_spec', 'GoodsController@AddSpec');
Route::any('/edit_spec', 'GoodsController@EditSpec');
Route::get('/delete_spec', 'GoodsController@DeleteSpec');

#等级管理
Route::get('/show_level', 'GoodsController@ShowLevelList');
Route::any('/add_level', 'GoodsController@AddLevel');
Route::any('/edit_level', 'GoodsController@EditLevel');
Route::get('/delete_level', 'GoodsController@DeleteLevel');

#文章管理
Route::get('/show_article', 'ArticleController@ShowArticleList');
Route::any('/add_article', 'ArticleController@AddArticle');
Route::any('/edit_article', 'ArticleController@EditArticle');
Route::any('/delete_article', 'ArticleController@DeleteArticle');

#资讯管理
Route::get('/show_information', 'InformationController@ShowInformationList');
Route::any('/add_information', 'InformationController@AddInformation');
Route::any('/edit_information', 'InformationController@EditInformation');
Route::get('/delete_information', 'InformationController@DeleteInformation');

#物流管理
Route::get('/show_logistics', 'LogisticsController@ShowLogisticsList');
Route::any('/add_logistics', 'LogisticsController@AddLogistics');
Route::any('/edit_logistics', 'LogisticsController@EditLogistics');
Route::get('/delete_logistics', 'LogisticsController@DeleteLogistics');

#仓储地管理
Route::get('/show_storage', 'OtherController@ShowStorageList');
Route::any('/add_storage', 'OtherController@AddStorage');
Route::any('/edit_storage', 'OtherController@EditStorage');
Route::get('/delete_storage', 'OtherController@DeleteStorage');

#林场管理
Route::get('/show_forest', 'OtherController@ShowForestList');
Route::any('/add_forest', 'OtherController@AddForest');
Route::any('/edit_forest', 'OtherController@EditForest');
Route::get('/delete_forest', 'OtherController@DeleteForest');

#港口管理
Route::get('/show_harbour', 'OtherController@ShowHarbourList');
Route::any('/add_harbour', 'OtherController@AddHarbour');
Route::any('/edit_harbour', 'OtherController@EditHarbour');
Route::get('/delete_harbour', 'OtherController@DeleteHarbour');

#港口需求
Route::get('/show_harbour_need', 'OtherController@ShowHarbourNeedList');
Route::any('/add_harbour_need', 'OtherController@AddHarbourNeed');
Route::any('/edit_harbour_need', 'OtherController@EditHarbourNeed');
Route::get('/del_harbour_need', 'OtherController@DeleteHarbourNeed');

#广告位管理
Route::get('/show_ads', 'OtherController@ShowAdsList');
Route::any('/add_ads', 'OtherController@AddAds');
Route::any('/edit_ads', 'OtherController@EditAds');
Route::get('/delete_ads', 'OtherController@DeleteAds');

#消息中心
Route::get('/show_notice', 'OtherController@ShowNoticeList');
Route::any('/add_notice', 'OtherController@AddNotice');
Route::any('/edit_notice', 'OtherController@EditNotice');
Route::get('/delete_notice', 'OtherController@DeleteNotice');

#帮助中心
Route::get('/show_help', 'OtherController@ShowHelpList');
Route::any('/add_help', 'OtherController@AddHelp');
Route::any('/edit_help', 'OtherController@EditHelp');
Route::get('/delete_help', 'OtherController@DeleteHelp');

#视频管理
Route::get('/show_video', 'OtherController@ShowVideoList');
Route::any('/add_video', 'OtherController@AddVideo');
Route::get('/edit_video', 'OtherController@EditVideo');
Route::get('/delete_video', 'OtherController@DeleteVideo');


#API
Route::group(['prefix'=>'Api'], function() {

    #API 2016-1-15
    #APP初始接口
    Route::get('/index_app', 'ApiController@IndexApp');                        //done
    #首页数据展示
    Route::get('/index_data', 'ApiController@GetIndexData');                        //done
    #注册
    Route::post('/register', 'ApiController@DeposeRegister');                       //done
    #修改用户信息
    Route::post('/modify_user_info', 'ApiController@ModifyUserInfo');             //done
    #注册手机号验证
    Route::post('/mobile', 'ApiController@Mobile');                                 //done
    #登录
    Route::post('/login', 'ApiController@DeposeLogin');                             //done
    #第三方登陆
    Route::post('/third_login', 'ApiController@ThirdLogin');						//done
    #注销
    Route::get('/logout', 'ApiController@Logout');                                  //done
    #商家入驻信息完善
    Route::post('/modify_common_detail', 'ApiController@ModifyCommonDetail');       //done
    #获取完善信息
    Route::get('/common_detail', 'ApiController@GetCommonDetail');                  //done
    #资质审核
    Route::post('/modify_certify', 'ApiController@ModifyCertifyInfo');              //done
    #获取资质信息
    Route::get('/certify_detail', 'ApiController@GetCertifyDetail');                //done
    #获取用户信息
    Route::get('/user_info', 'ApiController@GetUserInfo');                          //done
    #密码修改
    Route::post('/modify_password', 'ApiController@ModifyPassword');                  //done
    #重置密码
    Route::post('/reset_password', 'ApiController@ResetPassword');                  //done
    #自营商品列表
    Route::get('/self_support_product', 'ApiController@GetSelfSupportProduct');     //done
    #商城商品列表
    Route::get('/shop_product', 'ApiController@GetShopProduct');                   //done

    #产品分类信息
    Route::get('/categories', 'ApiController@GetCategories');                         //done
    #增加产品
    Route::post('/add_product', 'ApiController@AddProduct');                         //done

    #获取产品信息
    Route::get('/product_detail', 'ApiController@GetProductDetail');                //done

    #获取发票列表
    Route::get('/invoice_list', 'ApiController@GetInvoiceList');                    //done

    #获取产品上下架列表
    Route::get('/get_manage_product', 'ApiController@GetManageProduct');            //done
    #产品上下架
    Route::post('/manage_product', 'ApiController@ManageProduct');                   //done
    #商家统计
    Route::get('/supplier_statistics', 'ApiController@SupplierStatistics');          //done
    #商家统计链接
    Route::get('/get_supplier_statistics', 'ApiController@GetSupplierStatistics');   //done
    #商家详情
    Route::get('/supplier_detail', 'ApiController@GetSupplierDetail');               //done
    #增加/修改收货地址
    Route::post('/modify_address', 'ApiController@ModifyAddress');                   //done
    #修改默认收货地址
    Route::post('/modify_is_default', 'ApiController@ModifyIsDefault');                   //done
    #删除收获地址
    Route::post('/delete_address', 'ApiController@DeleteAddress');                   //done
    #获取收货地址列表
    Route::get('/address_list', 'ApiController@GetAddressList');                     //done
    #消息中心
    Route::get('/notice_list', 'ApiController@GetNoticeList');                       //done
    #消息详情
    Route::get('/notice_detail', 'ApiController@GetNoticeDetail');                   //done
    #删除消息
    Route::post('/delete_notice', 'ApiController@DeleteNotice');                    //done
    #删除库存商品
    Route::post('/delete_stock_product', 'ApiController@DeleteStoreProduct');       //done

    #商品评论
    Route::post('/add_product_comment', 'ApiController@AddProductComment');         //todo 待测


    #发布询价单
    Route::post('/publish_inquiry', 'ApiController@PublishInquiry');                 //done
    #发布供货单
    Route::post('/publish_supply', 'ApiController@PublishSupply');                   //done
    #发布定制单
    Route::post('/publish_customize', 'ApiController@PublishCustomize');            //done
    #发布木业圈动态
    Route::post('/publish_circle', 'ApiController@PublishCircle');                  //done
    #获取询价单
    Route::get('/inquiry_list', 'ApiController@GetInquiryList');                    //done
    #获取供货单
    Route::get('/supply_list', 'ApiController@GetSupplyList');                      //done
    #获取定制单
    Route::get('/customize_list', 'ApiController@GetCustomizeList');                //done
    #木业圈动态
    Route::get('/circle_list', 'ApiController@GetCircleList');                      //done
    #木业资讯列表*
    Route::get('/information_list', 'ApiController@GetInformationList');           //done
    #资讯详情
    Route::get('/information_detail', 'ApiController@GetInformationDetail');        //done
    #反馈信息列表
    Route::get('/feedback_list', 'ApiController@GetFeedbackList');                  //done
    #发送反馈
    Route::post('/send_feedback', 'ApiController@SendFeedback');                     //done
    #收藏产品
    Route::post('/collect_product', 'ApiController@CollectProduct');                //done
    #我的收藏
    Route::get('/collect_list', 'ApiController@GetCollectList');                    //done
    #木业圈点赞
    Route::post('/add_circle_like', 'ApiController@AddCircleLike');                 //done
    #木业圈评论
    Route::post('/add_circle_comment', 'ApiController@AddCircleComment');           //done
    #回复木业圈需求单
    Route::post('/reply_circle_request', 'ApiController@ReplyCircleRequest');       //done

    #林场列表*
    Route::get('/forest_list', 'ApiController@GetForestList');                      //done
    #林场详情*
    Route::get('/forest_detail', 'ApiController@ForestDetail');                     //done
    #林场需求*
    Route::post('/forest_need', 'ApiController@ForestNeed');                        //done

    #港口分布*
    Route::get('/harbour_list', 'ApiController@GetHarbourList');                    //done
    #港口详情*
    Route::get('/harbour_detail', 'ApiController@HarbourDetail');                   //done
    #港口需求*
    Route::post('/harbour_need', 'ApiController@HarbourNeed');                      //done

    #线路查询
    Route::get('/query_line', 'ApiController@QueryLine');                           //done
    #物流需求
    Route::post('/transport_need', 'ApiController@TransportNeed');                  //done

    #仓储列表
    Route::get('/storage_list', 'ApiController@GetStorageList');                    //done
    #仓储详情
    Route::get('/storage_detail', 'ApiController@StorageDetail');                   //done
    #仓储需求
    Route::post('/storage_need', 'ApiController@StorageNeed');                      //done
    #买家全部订单（待付款，待收货，已完成）
    Route::get('/order_all', 'ApiController@OrderAll');
    #订单详情
    Route::get('/order_detail', 'ApiController@OrderDetail');                   //done
    #订单状态
    Route::get('/order_status', 'ApiController@OrderStatus');                  //todo 待测
    #订单列表
    Route::get('/order_list', 'ApiController@OrderList');                   //done
    #订单生成
    Route::post('/generate_order', 'ApiController@GenerateOrder');          //done
    #支付页面
    Route::get('/pay_submit', 'ApiController@PaySubmit');          //done
    #支付
    Route::get('/pay_first', 'ApiController@PayFirst');          //done
    #测试支付
    Route::get('/pay_submit_test', 'ApiController@PaySubmitTest');          //done
    #支付配送
    Route::get('/pay_shipping', 'ApiController@PayShipping');            //done
    #确认订单
    Route::get('/confirm_order', 'ApiController@ConfirmOrder');         //done
    #订单详情
    Route::get('/order_detail', 'ApiController@OrderDetail');//done
    #删除订单
    Route::post('/delete_order', 'ApiController@DeleteOrder');          //todo 待测
    #支付成功跳转
    Route::get('/success_url', 'ApiController@SuccessUrl');          //
    #支付失败跳转
    Route::get('/fail_url', 'ApiController@FailUrl');          //
    #取消订单
    Route::get('/cancel_order', 'ApiController@CancelOrder');          //
    #确认收货
    Route::get('/confirm_receipt', 'ApiController@ConfirmReceipt');          //
    #更改价格
    Route::get('/change_price', 'ApiController@ChangePrice');          //
    #确认发货
    Route::get('/send_goods', 'ApiController@SendGoods');          //
    #异步通知
    Route::post('/notify_web', 'ApiController@Notify');          //
    #pos机对接
    Route::post('/pos', 'ApiController@Pos');                  //done
    #意见反馈
    Route::get('/opinion', 'ApiController@Opinion');          //


    #购物车添加商品
    Route::post('/add_cart', 'ApiController@AddCart');                  //done
    #购物车更新商品
    Route::post('/update_cart', 'ApiController@UpdateCart');            //done
    #购物车列表
    Route::get('/cart_info', 'ApiController@CartInfo');                  //done
    #购物车删除商品
    Route::post('/delete_cart', 'ApiController@DeleteCart');            //done

    #视频播放
    Route::get('/video_play', 'ApiController@VideoPlay');
    #帮助中心
    Route::get('/help_center', 'ApiController@HelpCenter');                    //done
    #帮助文章
    Route::get('/help_article', 'ApiController@HelpArticle');                  //done
    #关于木投
    Route::get('/about', 'ApiController@About');                               //done
    #资金需求
    Route::get('/cash_flow', 'ApiController@CashFlow');                         //done
    #获取资金需求
    Route::get('/get_cash_flow', 'ApiController@GetCashFlow');                  //done
    #获取token
    Route::get('/get_token', 'ApiController@GetToken');                  //done
    #上传头像
    Route::post('/upload_avatar', 'ApiController@UploadAvatar');         //done

    Route::get('/jd_pay', 'ApiController@JdPay');                  //done






    /** 圈子信息 **/
    Route::group(['prefix' => 'Circle'], function () {
        Route::post('/add_circle', 'ApiController@AddCircle');
        Route::post('/batch_add_circle', 'ApiController@BatchAddCircle');
        Route::post('/edit_circle', 'ApiController@EditCircle');
        Route::post('/del_circle', 'ApiController@DelCircle');
        Route::get('/inquiry_list', 'ApiController@GetInquiryList');
        Route::get('/information_list', 'ApiController@GetInformationList');
        Route::get('/circle_detail', 'ApiController@GetCircleDetail');
        Route::get('/circle_trends', 'ApiController@GetCircleTrends');
        Route::post('/personal_inquiry', 'ApiController@GetPersonalInquiryList');
        Route::post('/write_inquiry', 'ApiController@WriteInquiry');
        Route::post('/write_customize', 'ApiController@WriteCustomize');
        Route::post('/write_supply', 'ApiController@WriteSupply');
        Route::post('/customize_list', 'ApiController@GetCustomizeList');
    });
    /** 消息信息 **/
    Route::group(['prefix' => 'Message'], function () {
        Route::post('/batch_add_msg', 'ApiController@BatchAddMsg');
        Route::post('/add_msg', 'ApiController@AddMsg');
        Route::post('/edit_msg', 'ApiController@AddMsg');
        Route::post('/del_msg', 'ApiController@DelMsg');

        /** 产品信息 **/
        Route::group(['prefix' => 'Product'], function () {
            Route::get('/product_list', 'ApiController@GetProductList');
            Route::post('/product_detail', 'ApiController@GetProductDetail');
            Route::get('/product_cate', 'ApiController@GetProductCate');
            Route::get('/product_brand', 'ApiController@GetProductBrand');
            Route::get('/product_attr', 'ApiController@GetProductAttribute');
            Route::post('/add_product', 'ApiController@AddProduct');
            Route::get('/product_up', 'ApiController@ProductListUp');
            Route::get('/product_down', 'ApiController@ProductListDown');
        });


        /* 文章管理 */
        Route::group(['prefix' => 'Article'], function () {
            Route::post('/storage_detail', 'ArticleController@GetStorageDetail');
            Route::post('/storage_need', 'ArticleController@StorageNeed');
            Route::post('/harbour_detail', 'ArticleController@GetHarbourDetail');
            Route::post('/harbour_city', 'ArticleController@GetHarbourCity');
            Route::post('/harbour_need', 'ArticleController@HarbourNeed');
            Route::post('/forest_detail', 'ArticleController@GetForestDetail');
            Route::post('/article_detail', 'ArticleController@GetArticleDetail');
            Route::post('/forest_need', 'ArticleController@ForestNeed');
            Route::get('/forest_list', 'ApiController@GetForestList');
            Route::get('/mu_tou', 'ApiController@MuTou');

        });

        /*订单管理*/
        Route::group(['prefix' => 'Order'], function () {
            Route::post('/confirm_order', 'ApiController@ConfirmOrder');
            Route::post('/transport_demand', 'ApiController@TransportDemand');
            Route::post('/cart_list', 'ApiController@GetCartList');
            Route::post('/operate_cart', 'ApiController@OperateMemberCart');
            Route::post('/cart_detail', 'ApiController@GetCartDetail');
            Route::post('/upd_cart', 'ApiController@UpdateMemberCart');
            Route::post('/submit_order', 'ApiController@SubmitOrder');
            Route::post('/order_list', 'ApiController@GetOrderList');
            Route::post('/order_detail', 'ApiController@GetOrderDetail');
            Route::post('/delete_order', 'ApiController@DeleteOrder');
            Route::post('/order_payment', 'ApiController@OrderPayment');
            Route::post('/refund_apply', 'ApiController@RefundApply');
            Route::post('/refund_detail', 'ApiController@GetRefundDetail');
            Route::post('/address_operation', 'ApiController@AddressOperation');
            Route::get('/address_list', 'ApiController@GetAddressList');
        });


    });

});




